<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>商铺管理</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index">首页</a>
                </li>
                <li>
                    <a>系统管理</a>
                </li>
                <li class="active">
                    <strong>商铺管理</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="search_Name" name="search_Name" placeholder="商铺名称"
                                           autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <select id='search_typeofShop' name='typeofShop' class="form-control">
                                        <option value="-1">--所有类型--</option>
                                        <option value="0">加盟</option>
                                        <option value="1">直营</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <div class="form-group">
                                    <select id='search_State' name='search_State' class="form-control">
                                        <option value="">--全部状态--</option>
                                        <option value="1">已激活</option>
                                        <option value="0">未激活</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search"
                                        onclick="doSearch()"><i
                                        class="fa fa-search"></i>&nbsp;搜索
                                </button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh"
                                        onclick="doRest()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置
                                </button>
                            </div>
                        </div>

                        <div class="jqGrid_wrapper">
                            <div class="btn-group-sm" id="toolbar" role="group" style="display: none">
                                <a class="btn btn-success" name="AddNew" id="AddNew" data-toggle="modal"
                                   data-target="#myModalAdd" onclick="addRecord();">
                                    <i class="fa fa-plus"></i> 新增
                                </a>
                                <!--<a class="btn btn-primary single disabled">-->
                                <!--<i class="fa fa-edit"></i> 修改-->
                                <!--</a>-->
                                <!--<a class="btn btn-danger multiple disabled">-->
                                <!--<i class="fa fa-remove"></i> 删除-->
                                <!--</a>-->
                            </div>

                            <table class="table table-striped table-bordered table-hover " id="tableList">
                            </table>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">商铺信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->

                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">

                                <div class="row">
                                    <label class="col-lg-2 control-label">商铺类型</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='typeofShop' name='typeofShop' class="form-control">
                                                <option value="0">加盟</option>
                                                <option value="1">直营</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">是否认证</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='com_type' name='com_type' class="form-control">
                                                <option value="0">未认证</option>
                                                <option value="1">已认证</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <label class="col-lg-2 control-label">商铺名称</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Name" name="text_Name" placeholder="商铺名称(必填)"
                                                   autocomplete="off" class="form-control" maxlength="100">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">所属用户</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='com_UserId' name='com_UserId' class="form-control">
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">地址</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Address" name="text_Address"
                                                   placeholder="地址(必填)" autocomplete="off" class="form-control"
                                                   maxlength="500"/>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">联系电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Phone" name="text_Phone" placeholder="联系电话(必填)"
                                                   autocomplete="off" class="form-control" maxlength="20"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">经度</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Lng" name="text_Lng" placeholder="经度(必填)"
                                                   autocomplete="off" class="form-control" maxlength="10"/>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">纬度</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Lat" name="text_Lat" placeholder="纬度(必填)"
                                                   autocomplete="off" class="form-control" maxlength="10"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">费率(%)</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Rate" name="text_Rate" placeholder="费率(%)(必填)"
                                                   autocomplete="off" class="form-control" maxlength="10"/>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">手续费</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Charges" name="text_Charges"
                                                   placeholder="手续费(必填)" autocomplete="off" class="form-control"
                                                   maxlength="10"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <!--<label class="col-lg-2 control-label">所属服务商</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_Superior' name='text_Superior' class="form-control">
                                            </select>
                                        </div>
                                    </div>-->
                                    <label class="col-lg-2 control-label">空间类型</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_ShopType" name="text_ShopType"
                                                   placeholder="空间类型(必填)" autocomplete="off" class="form-control"
                                                   maxlength="100"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">标签</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select multip id='text_Tags' name='text_Tags' class="form-control">
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">空间平方数</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Space" name="text_Space" placeholder="空间平方数(必填)"
                                                   autocomplete="off" class="form-control" maxlength="100"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">省级编码</label>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_ProvinceCode' name='text_ProvinceCode'
                                                    class="form-control">
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">城市编码</label>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_CityCode' name='text_CityCode' class="form-control">
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">区县编码</label>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_AreaCode' name='text_AreaCode' class="form-control">
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">营业开始时间</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_StartTime' name='text_StartTime' class="form-control">
                                                <option value="00:00">00:00</option>
                                                <option value="00:30">00:30</option>
                                                <option value="01:00">01:00</option>
                                                <option value="01:30">01:30</option>
                                                <option value="02:00">02:00</option>
                                                <option value="02:30">02:30</option>
                                                <option value="03:00">03:00</option>
                                                <option value="03:30">03:30</option>
                                                <option value="04:00">04:00</option>
                                                <option value="04:30">04:30</option>
                                                <option value="05:00">05:00</option>
                                                <option value="05:30">05:30</option>
                                                <option value="06:00">06:00</option>
                                                <option value="06:30">06:30</option>
                                                <option value="07:00">07:00</option>
                                                <option value="07:30">07:30</option>
                                                <option value="08:00">08:00</option>
                                                <option value="08:30">08:30</option>
                                                <option value="09:00">09:00</option>
                                                <option value="09:30">09:30</option>
                                                <option value="10:00">10:00</option>
                                                <option value="10:30">10:30</option>
                                                <option value="11:00">11:00</option>
                                                <option value="11:30">11:30</option>
                                                <option value="12:00">12:00</option>
                                                <option value="12:30">12:30</option>
                                                <option value="13:00">13:00</option>
                                                <option value="13:30">13:30</option>
                                                <option value="14:00">14:00</option>
                                                <option value="14:30">14:30</option>
                                                <option value="15:00">15:00</option>
                                                <option value="15:30">15:30</option>
                                                <option value="16:00">16:00</option>
                                                <option value="16:30">16:30</option>
                                                <option value="17:00">17:00</option>
                                                <option value="17:30">17:30</option>
                                                <option value="18:00">18:00</option>
                                                <option value="18:30">18:30</option>
                                                <option value="19:00">19:00</option>
                                                <option value="19:30">19:30</option>
                                                <option value="20:00">20:00</option>
                                                <option value="20:30">20:30</option>
                                                <option value="21:00">21:00</option>
                                                <option value="21:30">21:30</option>
                                                <option value="22:00">22:00</option>
                                                <option value="22:30">22:30</option>
                                                <option value="23:00">23:00</option>
                                                <option value="23:30">23:30</option>
                                                <option value="24:00">24:00</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">营业结束时间</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_EndTime' name='text_EndTime' class="form-control">
                                                <option value="00:00">00:00</option>
                                                <option value="00:30">00:30</option>
                                                <option value="01:00">01:00</option>
                                                <option value="01:30">01:30</option>
                                                <option value="02:00">02:00</option>
                                                <option value="02:30">02:30</option>
                                                <option value="03:00">03:00</option>
                                                <option value="03:30">03:30</option>
                                                <option value="04:00">04:00</option>
                                                <option value="04:30">04:30</option>
                                                <option value="05:00">05:00</option>
                                                <option value="05:30">05:30</option>
                                                <option value="06:00">06:00</option>
                                                <option value="06:30">06:30</option>
                                                <option value="07:00">07:00</option>
                                                <option value="07:30">07:30</option>
                                                <option value="08:00">08:00</option>
                                                <option value="08:30">08:30</option>
                                                <option value="09:00">09:00</option>
                                                <option value="09:30">09:30</option>
                                                <option value="10:00">10:00</option>
                                                <option value="10:30">10:30</option>
                                                <option value="11:00">11:00</option>
                                                <option value="11:30">11:30</option>
                                                <option value="12:00">12:00</option>
                                                <option value="12:30">12:30</option>
                                                <option value="13:00">13:00</option>
                                                <option value="13:30">13:30</option>
                                                <option value="14:00">14:00</option>
                                                <option value="14:30">14:30</option>
                                                <option value="15:00">15:00</option>
                                                <option value="15:30">15:30</option>
                                                <option value="16:00">16:00</option>
                                                <option value="16:30">16:30</option>
                                                <option value="17:00">17:00</option>
                                                <option value="17:30">17:30</option>
                                                <option value="18:00">18:00</option>
                                                <option value="18:30">18:30</option>
                                                <option value="19:00">19:00</option>
                                                <option value="19:30">19:30</option>
                                                <option value="20:00">20:00</option>
                                                <option value="20:30">20:30</option>
                                                <option value="21:00">21:00</option>
                                                <option value="21:30">21:30</option>
                                                <option value="22:00">22:00</option>
                                                <option value="22:30">22:30</option>
                                                <option value="23:00">23:00</option>
                                                <option value="23:30">23:30</option>
                                                <option value="24:00">24:00</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                    <div class="row">
                                        <label class="col-lg-2 control-label">加盟时间</label>
                                        <div class="col-lg-4">
                                            <div class="form-group">
                                                <input type="text" id="text_CreateTime" name="text_CreateTime"
                                                       placeholder="加盟时间(必填)" autocomplete="off" class="form-control"
                                                       maxlength="50"/>
                                            </div>
                                        </div>
                                        <label class="col-lg-2 control-label">备注</label>
                                        <div class="col-lg-4">
                                            <div class="form-group">
                                                <input type="text" id="text_Remark" name="text_Remark" placeholder="备注"
                                                       autocomplete="off" class="form-control" maxlength="500">
                                            </div>
                                        </div>
                                    </div>


                                </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;保存
                    </button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!--模态框222-->
    <div class="modal inmodal" id="myModalAdd2" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">房间图片</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->

                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform2">
                            <div class="panel-body form-horizontal">

                                <div class="row">
                                    <label class="col-lg-3 control-label">上传图片</label>
                                    <div class="col-lg-9">
                                        <div class="form-group">
                                            <a href="javascript:;" class="a-upload">
                                                <input type="file" id="fuImportMultipleShipmentStatus"
                                                       name="fuImportMultipleShipmentStatus"
                                                       onchange="ImportShipmentStatusList();"/>点击这里上传图片(格式：.png,.gif,.jpg,尺寸：420*250)
                                            </a>
                                            <input name="imgURL" id="imgURL" class="easyui-validatebox" type="hidden">
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <label class="col-lg-3 control-label">店面图片</label>
                                    <div class="col-lg-9">
                                        <div class="form-group">
                                            <img id="photourl" style='width:420px; height:250px'/>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="close2" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!--模态框333-->
    <!--<form id="form1" name="myModalAdd3" method="post" action="menuQuery.do">
        <span style="color:#996633;">&lt;!&ndash;iframe窗口弹出代码！&ndash;&gt;</span>
        <span style="color:#ff0000;">
            <div id="light" class="white_content" style="position:fixed;">
                <div style="width:100%;height:100%">
                    <iframe id="openiframe" src="http://localhost:18082/aboutus/index" width="100%" height="100%" frameborder="0"></iframe>
                </div>
            </div>
        </span>
    </form>-->
    <!--<div class="modal inmodal" id="myModalAdd3" tabindex="-1" role="dialog" aria-hidden="false">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">门店简介</h4>
                </div>
                <div class="modal-body">
                    &lt;!&ndash;@*模态框body*@&ndash;&gt;

                    <div class="tabs-container">

                        <div class="row">
                            <div class="jqGrid_wrapper">
                                <div class="summernote">
                                    富文本编辑
                                </div>
                            </div>
                        </div>
                    </div>

                    &lt;!&ndash;模态框body结束&ndash;&gt;
                </div>
                <div class="modal-footer">
                    <button style="display: none" type="button" id="save3" name="save" class="btn btn-success" onclick="addRecord3();"><i
                            class="fa fa-save"></i>&nbsp;保存
                    </button>
                    <button type="button" id="close3" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>-->

    <!--模态框444-->
    <!--<div class="modal inmodal" id="myModalAdd4" tabindex="-1" role="dialog" aria-hidden="false">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">周边配套</h4>
                </div>
                <div class="modal-body">
                    &lt;!&ndash;@*模态框body*@&ndash;&gt;

                    <div class="tabs-container">

                        <div class="row">
                            <div class="jqGrid_wrapper">
                                <div class="summernote">
                                    富文本编辑
                                </div>
                            </div>
                        </div>
                    </div>

                    &lt;!&ndash;模态框body结束&ndash;&gt;
                </div>
                <div class="modal-footer">
                    <button type="button" id="save4" style="display: none" name="save" class="btn btn-success" onclick="addRecord4();"><i
                            class="fa fa-save"></i>&nbsp;保存
                    </button>
                    <button type="button" id="close4" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>-->

    <!--模态框555-->
    <!--<div class="modal inmodal" id="myModalAdd5" tabindex="-1" role="dialog" aria-hidden="false">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">预定须知</h4>
                </div>
                <div class="modal-body">
                    &lt;!&ndash;@*模态框body*@&ndash;&gt;

                    <div class="tabs-container">

                        <div class="row">
                            <div class="jqGrid_wrapper">
                                <div class="summernote">
                                    富文本编辑
                                </div>
                            </div>
                        </div>
                    </div>

                    &lt;!&ndash;模态框body结束&ndash;&gt;
                </div>
                <div class="modal-footer">
                    <button type="button" id="save5" style="display: none" name="save" class="btn btn-success" onclick="addRecord5();"><i
                            class="fa fa-save"></i>&nbsp;保存
                    </button>
                    <button type="button" id="close5" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>-->

</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/Scripts/ajaxfileupload.js}"></script>
    <script th:src="@{/js/selectMultip.js}"></script>
    //下拉多选
    <script th:src="@{/js/shop/shop.js}"></script>
    <!-- summernote -->
    <link th:href="@{/css/plugins/summernote/summernote.css}" rel="stylesheet">
    <script th:src="@{/js/lib/inspinia/js/plugins/summernote/summernote.min.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    Shop.init();
</script>
</html>